#ifndef RECORDINFO_H
#define RECORDINFO_H

#include <QDialog>
#include "ui_recordinfo.h"
#include "record.h"

class RecordInfo : public QDialog, public Ui::RecordInfo{
    Q_OBJECT

public:
    // change constructor to take in Record instead of Qstring
    RecordInfo();
    RecordInfo(Record);
    Record record;
    string nameID;
    string name;
    string info;
    string category;
    string id;
    QDateTime datetime;
    double amount;
    bool edited;

private:

signals:
    void on_deleteRecordButton_clicked();
    void on_recordInfoAccept_clicked();
    void on_recordInfoCancel_clicked();
    void remove(string);
    void modify(string nameID, string id, QDateTime newdatetime, string newname,
                string newinfo, string newcategory, double newamount);
    void modify(Record, Record);
public slots:
    void removeRecord();
    void checkEdited();

};

#endif // RECORDINFO_H
